<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>证书查询_深圳成武金石农业开发有限公司</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui2/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<![endif]-->


    <div id="hcvueapp">
        <div class="layui-container">
            <div class="layui-row">
                <!--移动：6/12 | 平板：6/12 | 桌面：4/12   class="layui-col-xs6 layui-col-sm6 layui-col-md4"   -->
                <div class="layui-col-xs5 layui-col-sm5 layui-col-md6">
                    <img src="../img/2.jpg" style="min-width: 300px; width: 100%;" />
                </div>
            </div>
            <br />

        </div>
        <!--     <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend>{{message}}</legend>
        </fieldset>-->
        {{showmessage}}
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">{{baskimg.fv4}}--证书信息</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                      <div style="font-weight: bold">产品介绍 </div>
                      <div > {{baskimg.fv5}}</div>
                    <br />
                    <div style="font-weight: bold">农场信息 </div>
                    <table class="layui-table" lay-even="">
                        <colgroup>
                            <col width="110">
                            <col>
                        </colgroup>
                        <tbody>
                            <tr>
                                <td>农场负责人</td>
                                <td>{{baskimg.fv6}}</td>
                            </tr>
                            <tr>
                                <td>农场名称</td>
                                <td>{{baskimg.fv7}}</td>
                            </tr>
                            <tr>
                                <td>农场地址</td>
                                <td>{{baskimg.fv8}}</td>
                            </tr>
                            <tr>
                                <td>基地面积</td>
                                <td>{{baskimg.fv9}}</td>
                            </tr>
                            <tr>
                                <td>种植面积</td>
                                <td>{{baskimg.fv10}}</td>
                            </tr>
                            <tr>
                                <td>栽培品种</td>
                                <td>{{baskimg.fv11}}</td>
                            </tr>
                        </tbody>
                    </table>

                       
                    <div v-if="baskimg.imgurl1!=null">
                        <div style="font-weight: bold">  {{baskimg.addinfoname1}}  </div>
                      
                        <img  :src="baskimg.imgurl1"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname1">
                    </div>
                    <div v-if="baskimg.imgurl2!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname2}}</div>
                          <img  :src="baskimg.imgurl2"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname2"></div>
                    <div v-if="baskimg.imgurl3!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname3}}</div>
                         <img  :src="baskimg.imgurl3"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname3"></div>
                    <div v-if="baskimg.imgurl4!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname4}} </div>
                         <img  :src="baskimg.imgurl4"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname4"></div>
                    <div v-if="baskimg.imgurl5!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname5}} </div>
                         <img  :src="baskimg.imgurl5"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname5"></div>
                    <div v-if="baskimg.imgurl6!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname6}}</div>
                         <img  :src="baskimg.imgurl6"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname6"></div>
                    <div v-if="baskimg.imgurl7!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname7}} </div>
                         <img  :src="baskimg.imgurl7"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname7"></div>
                    <div v-if="baskimg.imgurl8!=null">    <div style="font-weight: bold"> {{baskimg.addinfoname8}} </div>
                         <img  :src="baskimg.imgurl8"  style=" max-width: 100%;height: auto;display: block; "  :alt="baskimg.addinfoname8"></div>
               
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../js/vue.min.js"></script>

    <script>

        var hcvueapp = new Vue({
            el: '#hcvueapp',
            data: {
                message: '绿色健康生活，源于真诚！',
                showmessage: '',
                codeinfo: 'CC0000000302',
                baskinfo: {},//计划信息
                baskimg: {},
                listinfo: []
            },
            methods: {

            }
        })
    </script>
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="../lib/layui2/layui.js" charset="utf-8"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script type="text/javascript">

        var spPageUrl = "../ashx/spopen.ashx";//后台统一页面
        getspimg(getUrlParam("wid"), getUrlParam("pid"));
        layui.use('element', function () {
            var $ = layui.jquery
            , element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
        });
        var whereaddinfo = "";
        function findallinfo() {
            $.ajax({
                type: "post",
                url: "../ashx/ReViewService.ashx",
                dataType: "json",
                data: {
                    "action": "backtimereview",
                    "codeinfo": hcvueapp.codeinfo
                },
                async: true,
                cache: false,
                error: function (error) {

                },
                success: function (data) {
                    //console.log(data);
                    //var result = JSON.parse(data);
                    //console.log(result);
                    hcvueapp.listinfo = data;

                    if (hcvueapp.listinfo == null || hcvueapp.listinfo.review_task_center_work_codeok == null || hcvueapp.listinfo.review_task_center_work_codeok.length == 0) {
                        hcvueapp.showmessage = "抱歉，没有找到对应的有机码信息！";
                        hcvueapp.baskinfo = {};
                    }
                    else {
                        hcvueapp.showmessage = "";
                        hcvueapp.baskinfo = hcvueapp.listinfo.review_task[0];
                        getspimg(hcvueapp.baskinfo.tasksctype);
                    }

                    // console.log(hcvueapp.listinfo);

                }
            });
        }

        //根据产品ID获取图片信息
        function getspimg(wid, pid) {
            hcdoselbyPost("*"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo1 ) as   imgurl1"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo2 ) as   imgurl2"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo3 ) as   imgurl3"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo4 ) as   imgurl4"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo5 ) as   imgurl5"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo6 ) as   imgurl6"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo7 ) as   imgurl7"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo8 ) as   imgurl8"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo9 ) as   imgurl9"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo10 ) as   imgurl10"
                ,
                "yw_baseinfo", " type=15 and fv1='" + wid + "' and fv3='" + pid + "'", "", "", "id",
                 function (backd) {
                     var i = 0;
                     hcvueapp.baskimg = backd[0];

                     console.log(hcvueapp.baskimg);

                     //CC0000000302
                 });
        }
        $(function () {

        });
    </script>

</body>
</html>
